package model

import "gorm.io/gorm"

type Shop struct {
	gorm.Model
	Name  string  `gorm:"type:varchar(30)"json:"name"`
	Price float64 `gorm:"type:decimal(10,2)"json:"price"`
	Num   int     `gorm:"type:int(11)"json:"num"`
}
type Cart struct {
	gorm.Model
	ShopId   int     `gorm:"type:int(11)"json:"shopId"`
	Quantity int     `gorm:"type:int(11)"json:"quantity"`
	Money    float64 `gorm:"type:decimal(10,2)"json:"money"`
}
